package com.todo.pro.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author ZhongXia
 * @since 2018-09-05
 */
@TableName("td_system_user")
public class SystemUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 登录名
     */
    @TableField("login_name")
    private String loginName;
    /**
     * 手机号
     */
    @TableField("phone_no")
    private String phoneNo;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 登陆密码
     */
    private String password;
    /**
     * 账号锁定
     */
    @TableField("is_locked")
    private Integer isLocked;
    /**
     * 账号禁用
     */
    @TableField("is_enabled")
    private Integer isEnabled;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最后修改密码时间
     */
    @TableField("update_pw_time")
    private Date updatePwTime;
    /**
     * 最后登录时间
     */
    @TableField("last_login_time")
    private Date lastLoginTime;
    /**
     * 数据更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIsLocked() {
        return isLocked;
    }

    public void setIsLocked(Integer isLocked) {
        this.isLocked = isLocked;
    }

    public Integer getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Integer isEnabled) {
        this.isEnabled = isEnabled;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdatePwTime() {
        return updatePwTime;
    }

    public void setUpdatePwTime(Date updatePwTime) {
        this.updatePwTime = updatePwTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SystemUser{" +
        ", id=" + id +
        ", loginName=" + loginName +
        ", phoneNo=" + phoneNo +
        ", email=" + email +
        ", password=" + password +
        ", isLocked=" + isLocked +
        ", isEnabled=" + isEnabled +
        ", createTime=" + createTime +
        ", updatePwTime=" + updatePwTime +
        ", lastLoginTime=" + lastLoginTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
